package com.ddf.util;

import java.util.List;

public class Constants {
	
	private Constants() {
		throw new IllegalStateException("Utility class");
	}
	
    public static final String CHARSET_U8 = "UTF-8";
 	
 	public static boolean isNotNull(Object str) {
 		return str != null && !"".equals(str.toString()) && !"".equals(str.toString().trim());
 	}
 	
 	public static boolean isEmpty(List<?> list) {
 		return list == null || list.isEmpty();
 	}
 	
 	public static String nullToBlank(Object obj) {
 		if (isNotNull(obj)) {
 			return obj.toString();
 		}
 		return "";
 	}
}
